package com.asset.salesforce.form;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.NumberFormat;
import org.springframework.format.annotation.NumberFormat.Style;

import com.asset.salesforce.domain.Employee;
import com.asset.salesforce.validator.ProductCodeNotExist;
import com.asset.salesforce.validator.ProductNameNotExist;
@ProductNameNotExist
@ProductCodeNotExist
public class StockProductForm {

	private Employee owner;
	private Boolean isDeleted;
	@NotEmpty(message="Please,Enter the name.")
	//@Pattern(regexp="^$|[a-zA-Z\\s]*$",message="Please Enter the name in string")
	private String name;
	@NotEmpty(message="Please,Enter thr code.")
	@Pattern(regexp="^$|^[0-9]*$",message="Please Enter the code in number format")
	private String code;
	private String info;
	@NotEmpty(message="Please,Enter the quantity.")
	@Pattern(regexp="^$|^[0-9]*$",message="Please Enter the quantity in number format")
	private String quantity;
	@NotEmpty(message="Please enter description.")
	private String description;
	private String note;
	private String comment;
	private String feedback;
	
	private Integer employeeId;
	private Integer parentId;
	public String getFeedback() {
		return feedback;
	}
	public void setFeedback(String feedback) {
		this.feedback = feedback;
	}
	public Employee getOwner() {
		return owner;
	}
	public void setOwner(Employee owner) {
		this.owner = owner;
	}
	public Boolean getIsDeleted() {
		return isDeleted;
	}
	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public String getQuantity() {
		return quantity;
	}
	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public Integer getEmployeeId() {
		return employeeId;
	}
	public void setEmployeeId(Integer employeeId) {
		this.employeeId = employeeId;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}	
	
}
